<div class="row">

    <div class="col-md-12">      		
    	
    	<div class="widget stacked ">
    

            <div class="widget-content">

                
                <br />
                
                <section id="tables">
                    <div class="page-header">
                        <h3><?php echo $title; ?></h3>
                    </div>
                    
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover table-striped">
                            <thead>
                                <tr>
                                    <th><a href="<?php //echo site_url('cpannel/categories/index/?q='). urlencode($q) .'&order_by=id_category&order_way='. (($order_by == 'id_category' && $order_way == 'DESC')?'ASC':'DESC'); ?>"><?php echo $this->l('#'); ?><?php //echo (($order_by == 'id_category')?(($order_way == 'DESC')?' (v)':' (^)'):''); ?></a></th>
                                    <th><a href="<?php //echo site_url('cpannel/categories/index/?q='). urlencode($q) .'&order_by=category_name&order_way='. (($order_by == 'category_name' && $order_way == 'DESC')?'ASC':'DESC'); ?>"><?php echo $this->l('Email'); ?><?php //echo (($order_by == 'category_name')?(($order_way == 'DESC')?' (v)':' (^)'):''); ?></a></th>
                                    <th><a href="<?php //echo site_url('cpannel/categories/index/?q='). urlencode($q) .'&order_by=parent_name&order_way='. (($order_by == 'parent_name' && $order_way == 'DESC')?'ASC':'DESC'); ?>"><?php echo $this->l('Patient'); ?><?php //echo (($order_by == 'parent_name')?(($order_way == 'DESC')?' (v)':' (^)'):''); ?></a></th>
                                    <th><a href="<?php //echo site_url('cpannel/categories/index/?q='). urlencode($q) .'&order_by=id_user&order_way='. (($order_by == 'id_user' && $order_way == 'DESC')?'ASC':'DESC'); ?>"><?php echo $this->l('Status'); ?><?php //echo (($order_by == 'id_user')?(($order_way == 'DESC')?' (v)':' (^)'):''); ?></a></th>
                                    <th class="td-actions" width="130"></th>
                                </tr>
                            </thead>
                            <tbody>
                        		<?php foreach ($users as $k => $v): ?>
                        			<tr>
                        				<td><?php echo $v->id_user; ?></td>
                        				<td><?php echo $v->email; ?></td>
                        				<td><?php echo $v->username .' ['. $v->firstname .' '. $v->lastname .']'; ?></td>
                        				<td><?php echo ($v->activated == '0') ? $this->l('Not confirmed') : ( ($v->activated == '2') ? $this->l('Activated') : $this->l('Confirmed') ); ?></td>
                        				
                						<td class="td-actions">
                							<a title="<?php echo $this->l('Activate this patient'); ?>" href="<?php echo site_url('Doctor/Patient/activatePatient/'. (int)$v->id_user); ?>" class="btn btn-xs btn-primary">
                								<i class="btn-icon-only icon-ok"></i>										
                							</a>
                							<a title="<?php echo $this->l('View this patient'); ?>" href="<?php echo site_url('Doctor/Patient/viewPatient/'. (int)$v->id_user); ?>" class="btn btn-xs btn-primary">
                								<i class="btn-icon-only icon-eye-open"></i>										
                							</a>
                							<a title="<?php echo $this->l('Edit this patient'); ?>" href="<?php //echo site_url('cpannel/categories/edit/?id='. (int)$v->id_category); ?>" class="btn btn-xs btn-primary">
                								<i class="btn-icon-only icon-edit"></i>										
                							</a>
                							<a title="<?php echo $this->l('Delete this patient'); ?>" href="<?php //echo site_url('cpannel/categories/delete/?id='. (int)$v->id_category); ?>" class="btn btn-xs btn-primary msgbox-confirm">
                								<i class="btn-icon-only icon-remove"></i>										
                							</a>
                						</td>
                        			</tr>
                        		<?php endforeach ?>
                            </tbody>
                        </table>
                    </div> <!-- /.table-responsive -->

                    <?php //include(dirname(__FILE__).'/../layout/pagination.php'); ?>
                    
                </section>
    			
    		</div> <!-- /widget-content -->
    			
    	</div> <!-- /widget -->
    	
    </div> <!-- /span12 -->

</div> <!-- /row -->